package com.jinxiangyang.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jinxiangyang.domain.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jinxiangyang.domain.vo.CourseFormVo;
import com.jinxiangyang.domain.vo.CoursePublishVo;
import com.jinxiangyang.domain.vo.CourseQueryVo;
import org.apache.poi.ss.formula.functions.T;

import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author jinxiangyang
 * @since 2023-08-12
 */
public interface CourseService extends IService<Course> {


    /**
     * 分页查询课程
     * @param pageParam
     * @param courseQueryVo
     * @return
     */

    Map<String,Object> findPageCourse(Page<Course> pageParam, CourseQueryVo courseQueryVo);


    /**
     * 保存课程
     * @param courseFormVo
     * @return
     */

    Long saveCourseInfo(CourseFormVo courseFormVo);

    CourseFormVo getCourseById(Long id);

    Long updateCourseById(CourseFormVo courseFormVo);

    CoursePublishVo getCoursePublishVoById(Long id);

    void publishCourse(Long id);

    void removeCourseId(Long id);
}
